package com.aco.party.web.command.system;

import com.aco.party.model.po.Posts;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
* Created by flying on 3/10/2016 0010.
*/
@Data
public class EditPostsCommand extends Posts{
    private String from;

    private Long terms;

public void toCommand(Posts po){
    BeanUtils.copyProperties(po, this);
}

public void toPo(Posts po){BeanUtils.copyProperties(this,po);}
}
